package com.lin.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lin.blog.entity.UserLike;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserLikeMapper extends BaseMapper<UserLike> {

    /**
     * 通过articleId 获取 该文章喜欢的数量
     * @param articleId
     * @return
     */
    public Integer getLikeCountByArticleId(Long articleId);
}
